package com.springcloud;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

import com.springcloud.annotation.ExcludComponentScanClass;

@SpringBootApplication(scanBasePackages = { "com.springcloud" })
@EnableDiscoveryClient // Eureka专用@EnableEurekaClient
@EnableFeignClients // 开启feign
@EnableCircuitBreaker // 开启断路器
@ComponentScan(excludeFilters = {
		@ComponentScan.Filter(type = FilterType.ANNOTATION, value = ExcludComponentScanClass.class) })
public class MovieApplication {

	public static void main(String[] args) {
		new SpringApplicationBuilder(MovieApplication.class).web(true).run(args);
	}
}
